// find max number of string "n" on all position
func minPartitions(n string) int {
	res := 0
	for _, v := range n {
		cur := int(v - '0')
		if cur > res {
			res = cur
		}
	}
	return res
}